<% module_namespacing do -%>
class <%= event_class_name %>Event
  include ActiveEvent::EventType
  attributes <%= event_attributes_names.map{|x| ":#{x}"}.join(', ') %>
  <%- unless attributes_names == ['id'] -%>
  def values
    <%- if event_attributes_names.include?('id') -%>
    attributes_except :id
    <%- else -%>
    to_hash
    <%- end -%>
  end
  <%- end -%>
end
<% end -%>
